<% #endcoding:utf-8%>
<div class="panel">
  <div class="panel-heading">
    <h3 class="demand-top">更换头像</h3>
  </div>
  <div class="panel-body">
    <p class="text-center"><%=image_tag @user.avatar_url,class: "large"%></p>
  </div>
  <div class="text-center">
  <%=form_for :user,:url=>changeavatar_path do |f|%>
    <%=f.file_field :avatar%>
    <%= f.hidden_field :avatar_cache %>
    <%=f.submit "上传",:class=>'btn btn-default'%>
  <%end%>
  </div>
</div>